package edu.java.lectures.lec08.exceptions.basics.examples;

import java.util.Scanner;

public class ArithmeticExceptionTest {

    public static void main(String[] args) {
	System.out.println("Enter a number: ");
	Scanner input = new Scanner(System.in);
	int number = input.nextInt();
	if (input != null) {
	    input.close();
	}
	int a = 5 / number;
	System.out.println("5/" + number + " = " + a);
    }
}
